A=[1,2,3]
B=[-4,8,9]

a=[]

num_list = [0,1,2]  
for i in num_list:  
    a.append((A[i]-B[i])**2)

print((a[0]+a[1]+a[2])**0.5)   


